Skip to content

Fix obsolete Testcontainers API calls after 4.10.0 upgrade#91

Merged
JerrettDavis merged 3 commits intodependabot/nuget/tests/JD.Efcpt.Build.Tests/Testcontainers.FirebirdSql-4.10.0from
copilot/sub-pr-86
Feb 10, 2026
Merged

Fix obsolete Testcontainers API calls after 4.10.0 upgrade#91
JerrettDavis merged 3 commits intodependabot/nuget/tests/JD.Efcpt.Build.Tests/Testcontainers.FirebirdSql-4.10.0from
copilot/sub-pr-86

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

Testcontainers 4.10.0 deprecated parameterless constructors in favor of constructors that accept the image name directly.

Changes

  • FirebirdSchemaIntegrationTests: Updated FirebirdSqlBuilder initialization to pass image to constructor
  • SnowflakeSchemaIntegrationTests: Updated ContainerBuilder initialization to pass image to constructor
- var container = new FirebirdSqlBuilder()
-     .WithImage("jacobalberty/firebird:v4.0")
+ var container = new FirebirdSqlBuilder("jacobalberty/firebird:v4.0")
      .Build();

The .WithImage() fluent method is replaced by constructor parameter as required by the new API.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 10, 2026 03:54
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Testcontainers.FirebirdSql from 4.4.0 to 4.10.0 Fix obsolete Testcontainers API calls after 4.10.0 upgrade Feb 10, 2026
Copilot AI requested a review from JerrettDavis February 10, 2026 04:04
@JerrettDavis JerrettDavis marked this pull request as ready for review February 10, 2026 04:12
@JerrettDavis JerrettDavis merged commit 3816898 into dependabot/nuget/tests/JD.Efcpt.Build.Tests/Testcontainers.FirebirdSql-4.10.0 Feb 10, 2026
2 checks passed
@JerrettDavis JerrettDavis deleted the copilot/sub-pr-86 branch February 10, 2026 04:13
JerrettDavis added a commit that referenced this pull request Feb 17, 2026
* deps: Bump Testcontainers.PostgreSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.PostgreSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: Bump Testcontainers.FirebirdSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.FirebirdSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: Bump Testcontainers.MySql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MySql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix obsolete Testcontainers API calls after 4.10.0 upgrade (#91)

* Initial plan

* Plan to fix obsolete Testcontainers API calls

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* Fix obsolete Testcontainers API calls

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* deps: Bump Testcontainers.MsSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix Testcontainers.MsSql 4.10.0 breaking changes (#92)

* deps: Bump Testcontainers.MsSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Initial plan

* Fix Testcontainers obsolete constructors to use new API

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* Update Testcontainers.MsSql to 4.10.0 in Sdk.IntegrationTests

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Co-authored-by: JD Davis <mxjerrett@gmail.com>

* deps: update NuGet packages to latest versions

* deps: Bump Testcontainers.Oracle from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.Oracle
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: address build errors from dependency updates

- Add 'partial' keyword to all test classes (required by TinyBDD 0.19.2 source generator)
- Restore TinyBDD analyzer disabling target (source generator produces broken code)
- Fix obsolete parameterless Testcontainers constructors (MySql, Oracle, PostgreSql)
- All 858 unit tests passing

* refactor: Remove redundant WithImage() calls in Testcontainers setup (#103)

* Initial plan

* refactor: remove redundant WithImage() calls and outdated.txt

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants